package com.erlin.common.vo;

import cn.hutool.core.bean.BeanUtil;
import com.erlin.common.config.OssConfig;
import com.erlin.platform.entity.ElFile;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class FileUploadResultVo {
    private Long id;             //文件唯一表示
    private String fileName;        //文件名
    private Long fileSize;
    private String bucket;
    private String folder;
    private String url;

//    public FileUploadResultVo(String fileName,Stri){
//
//    }

    public FileUploadResultVo from(ElFile source){
        FileUploadResultVo target = new FileUploadResultVo();
        BeanUtil.copyProperties(source,target,true);
        return target;
    }
}
